package com.peng.apis;

import com.peng.result.ResultData;
import com.peng.result.ReturnCodeEnum;
import org.springframework.stereotype.Component;

@Component
public class PayFeignSentineApiFallBack implements PayFeignSentineApi {

    @Override
    public String getPayInfo(Integer id) {
        return ReturnCodeEnum.RC500.getCode() + "对方服务不可用" ;
    }

    @Override
    public ResultData getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(),"对方服务不可用");
    }
}
